menushell: don't activate a menu entry when opening a big menu
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 27 Jun 2013 17:01:14 +0000 (19:01 +0200)
committerEmilio Pozuelo Monfort <pochu27@gmail.com>
Thu, 27 Jun 2013 18:20:53 +0000 (20:20 +0200)
commitf19c3896d03a4b1fe661aa13a5dffcb181ec157b
treead3b5589c64e4b8906f08595fc027d79f70e73e4
parentb39ce832ce33c7a384791d1413d5fb4c33180025
menushell: don't activate a menu entry when opening a big menu

If a menu is opened and it doesn't fit entirely below or above
the menu bar, gtk+ will place it on top. The button release will
then activate the popup item that happens to appear under the
cursor. Avoid this by ignoring release events if they originated
in the parent menu bar and the duration of the press was too short.

https://bugzilla.gnome.org/show_bug.cgi?id=703069
gtk/gtkmenushell.c